<%@page import="java.util.List"%>
<%@page import="eu.telecom_bretagne.RECRUT.data.model.Employe"
	import="eu.telecom_bretagne.RECRUT.service.IServiceEmploye"
	import="javax.naming.InitialContext"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
	InitialContext ctx = new InitialContext();
	IServiceEmploye gestionEmploye = (IServiceEmploye) ctx
			.lookup(IServiceEmploye.JNDI_NAME);
	int id = Integer.parseInt(request.getParameter("id"));
	Employe employe = gestionEmploye.lireEmploye(id);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Modification d'un employe</title>
</head>
<body>
	<h1>Modification d'un employe</h1>
	<form method="post" action="modifier_employe">
		<table>
			<tr>
				<td><b>ID:</b></td>
				<td><%=employe.getId()%> <input type="hidden" name="id"
					value="<%=employe.getId()%>"></td>
			</tr>
			<tr>
				<td><b>Nom:</b></td>
				<td><input type="text" name="nom"
					value="<%=employe.getNomEmploye()%>"></td>
			</tr>
			<tr>
				<td><b>Prenom:</b></td>
				<td><input type="text" name="prenom"
					value="<%=employe.getPrenomEmploye()%>"></td>
			</tr>
			<tr>
				<td><b>Type:</b></td>
				<td><input type="text" name="type"
					value="<%=employe.getTypeEmploye()%>"></td>
			</tr>
			<tr>
				<td><b>Departement:</b></td>
				<td><input type="text" name="departement"
					value="<%=employe.getDepartement()%>"></td>
			</tr>
		</table>
		<input type="submit">
	</form>
	<a href="index.jsp">Retour</a>
</body>
</html>